<?php
//$data["sEcho"]=$_POST['sEcho'];
//$data["iDisplayStart"]=$_POST['iDisplayStart'];
//
$data["iTotalRecords"]=57;
$data["iTotalDisplayRecords"]=57;
//for ($i = 1; $i <= $_POST["iDisplayLength"]; $i++) {
for ($i = 1; $i <= $_POST["iDisplayLength"]; $i++) {    
    if ($i%2 == 0){
        $dat='2012-12-15';
    }else{
        $dat='2012-12-16';
    }    
    $data["aaData"][]=array(
        $i,
        $dat,
        "2013-12-2".rand(0,9),
        "2013-12-2".rand(0,9),
        "10".rand(0,9),
        "Type-".rand(0,9),
        "3728270502".rand(0,9),
        "xxxx",
        "1".rand(0,9),
        "2".rand(0,9),
        "3".rand(0,9),
      );
}
echo json_encode($data);
?>